/*
    Copyright (C) 2010-2011 mdis
    
    This file is part of mdis.
    Written by Ketfi-Chérif Mehdi <ketficherif.mehdi@gmail.com>

    mdis is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    mdis is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with mdis.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef _PLUGIN_H
#define _PLUGIN_H

plugin_t * plugin_create ( void );
uint8_t plugin_init ( plugin_t * plugin );
uint8_t plugin_set_directory ( plugin_t * plugin , char * dir , uint32_t size );
uint8_t plugin_set ( plugin_t * plugin , char * lib , uint32_t size );
uint8_t plugin_search_libs ( plugin_t * plugin );
uint8_t plugin_device_supported ( plugin_t * plugin );
uint8_t plugin_load_syms ( plugin_t * plugin );
void plugin_disasm ( plugin_t * plugin , ptui_listview_t listview , uint8_t * code , uint16_t size );
void plugin_destroy ( plugin_t * plugin );

#endif

